<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateModulesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('modules', function (Blueprint $table) {
            $table->increments('id');
            $table->string('m_name')->commit('模块名称');
            $table->integer('m_pid')->commit('父类id');
            $table->string('m_path')->commit('路径');
            $table->string('m_style')->commit('模块样式');
            $table->string('m_url')->commit('模块链接地址');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('modules');
    }
}
